package com.hiema.v1.controller;


import com.heima.common.dtos.ResponseResult;
import com.heima.model.behavior.dtos.UnLikesBehaviorDto;
import com.hiema.service.BehaviorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1")
public class BehaviorController {

    @Autowired
    private BehaviorService behav;

    /**
     * 不喜欢
     * @param undto
     * @return
     */
    @PostMapping("/unlike_behavior")
    public ResponseResult unlike(@RequestBody UnLikesBehaviorDto undto){
        return behav.unlike(undto);
    }
}
